﻿@model EMRI.EmergencyCare.Web.Helper.PatientDetailsViewModel
<fieldset>
    <legend>Treatment</legend>
    @Html.HiddenFor(m => m.PatientDetails.Treatment.PatientId)
    <table>
        <tr>
            <td style="width: 40%;">
                <h5>
                    @Html.LabelFor(m => m.PatientDetails.Treatment.LifeLines)</h5>
                <table class="showborder">
                    <tr>
                        <th>
                            <label>
                                Gauge
                            </label>
                        </th>
                        <th>
                            @Html.LabelFor(m => m.PatientDetails.Treatment.LifeLines.First().Site)
                        </th>
                        <th>
                            @Html.LabelFor(m => m.PatientDetails.Treatment.LifeLines.First().Attempt)
                        </th>
                        <th>
                            @Html.LabelFor(m => m.PatientDetails.Treatment.LifeLines.First().Success)
                        </th>
                    </tr>
                    @Html.EditorFor(m => m.PatientDetails.Treatment.LifeLines)
                </table>
            </td>
            <td rowspan="3" style="width: 60%;">
                <table class="showborder">
                    <tr>
                        <th>
                            @Html.LabelFor(m => m.PatientDetails.Treatment.TreatmentDetails.First().Time)
                        </th>
                        <th>
                            @Html.LabelFor(m => m.PatientDetails.Treatment.TreatmentDetails.First().Interventions)
                        </th>
                        <th>
                            @Html.LabelFor(m => m.PatientDetails.Treatment.TreatmentDetails.First().Response)
                        </th>
                    </tr>
                    @Html.EditorFor(m => m.PatientDetails.Treatment.TreatmentDetails)
                </table>
            </td>
        </tr>
        <tr>
            <td>
                <h5>
                    <label>
                        O2, Ventlations</label></h5>
                @Html.CheckBoxFor(m => m.PatientDetails.Treatment.O2Facemask)
                @Html.LabelFor(m => m.PatientDetails.Treatment.O2Facemask)
                @Html.CheckBoxFor(m => m.PatientDetails.Treatment.O2Nrbm)
                @Html.LabelFor(m => m.PatientDetails.Treatment.O2Nrbm)
                @Html.CheckBoxFor(m => m.PatientDetails.Treatment.O2NasalCannula)
                @Html.LabelFor(m => m.PatientDetails.Treatment.O2NasalCannula)
                @Html.CheckBoxFor(m => m.PatientDetails.Treatment.O2Others)
                @Html.LabelFor(m => m.PatientDetails.Treatment.O2Others)
                &nbsp;&nbsp;&nbsp;&nbsp;
                @Html.LabelFor(m => m.PatientDetails.Treatment.O2Time)
                @Html.TextBoxFor(m => m.PatientDetails.Treatment.O2Time, new { @class = "shortTxt" })
                @Html.LabelFor(m => m.PatientDetails.Treatment.O2Lpm)
                @Html.TextBoxFor(m => m.PatientDetails.Treatment.O2Lpm, new { @class = "shortTxt" })
            </td>
        </tr>
        <tr>
            <td>
                @Html.CheckBoxFor(m => m.PatientDetails.Treatment.VentilatorMechanical)
                @Html.LabelFor(m => m.PatientDetails.Treatment.VentilatorMechanical)
                @Html.CheckBoxFor(m => m.PatientDetails.Treatment.VentilatorBagMask)
                @Html.LabelFor(m => m.PatientDetails.Treatment.VentilatorBagMask)
                @Html.CheckBoxFor(m => m.PatientDetails.Treatment.VentilatorOthers)
                @Html.LabelFor(m => m.PatientDetails.Treatment.VentilatorOthers)
                &nbsp;&nbsp;&nbsp;&nbsp;
                @Html.LabelFor(m => m.PatientDetails.Treatment.VentilatorMode)
                @Html.TextBoxFor(m => m.PatientDetails.Treatment.VentilatorMode, new { @class = "shortTxt" })
                @Html.LabelFor(m => m.PatientDetails.Treatment.VentilatorRate)
                @Html.TextBoxFor(m => m.PatientDetails.Treatment.VentilatorRate, new { @class = "shortTxt" })
                <label class="value">
                    (Min)</label>
            </td>
        </tr>
        <tr>
            <td>
                <h5>
                    <label>
                        Others</label>
                </h5>
                @Html.CheckBoxFor(m => m.PatientDetails.Treatment.Woundcare)
                @Html.LabelFor(m => m.PatientDetails.Treatment.Woundcare)
                @Html.CheckBoxFor(m => m.PatientDetails.Treatment.Suturing)
                @Html.LabelFor(m => m.PatientDetails.Treatment.Suturing)
                @Html.CheckBoxFor(m => m.PatientDetails.Treatment.Splinting)
                @Html.LabelFor(m => m.PatientDetails.Treatment.Splinting)
                @Html.CheckBoxFor(m => m.PatientDetails.Treatment.Smrd)
                @Html.LabelFor(m => m.PatientDetails.Treatment.Smrd)
                @Html.CheckBoxFor(m => m.PatientDetails.Treatment.BleedingControl)
                @Html.LabelFor(m => m.PatientDetails.Treatment.BleedingControl)
                @Html.CheckBoxFor(m => m.PatientDetails.Treatment.Ccollar)
                @Html.LabelFor(m => m.PatientDetails.Treatment.Ccollar)
                @Html.CheckBoxFor(m => m.PatientDetails.Treatment.Aed)
                @Html.LabelFor(m => m.PatientDetails.Treatment.Aed)
                @Html.CheckBoxFor(m => m.PatientDetails.Treatment.Cpr)
                @Html.LabelFor(m => m.PatientDetails.Treatment.Cpr)
                @Html.TextBoxFor(m => m.PatientDetails.Treatment.CprDesc, new { @class = "shortTxt" })
            </td>
            <td>
                <h5>
                    <label>
                        Airway Management</label></h5>
                <table class="showborder">
                    <tr>
                        <th>
                            <label>
                                Procedure</label>
                        </th>
                        <th>
                            <label>
                                Size</label>
                        </th>
                        <th>
                            <label>
                                Success</label>
                        </th>
                        <th>
                            <label>
                                Time</label>
                        </th>
                        <th>
                            <label>
                                #Attempt</label>
                        </th>
                    </tr>
                    <tr>
                        <td>
                            @Html.CheckBoxFor(m => m.PatientDetails.Treatment.Suction)
                            @Html.LabelFor(m => m.PatientDetails.Treatment.Suction)
                        </td>
                        <td>@Html.TextBoxFor(m => m.PatientDetails.Treatment.SuctionSize)
                        </td>
                        <td>
                            @Html.RadioButtonFor(m => m.PatientDetails.Treatment.SuctionSuccess, "true")
                            <label class="value">
                                Yes</label>
                            @Html.RadioButtonFor(m => m.PatientDetails.Treatment.SuctionSuccess, "false")
                            <label class="value">
                                No</label>
                        </td>
                        <td>
                            @Html.TextBoxFor(m => m.PatientDetails.Treatment.SuctionTime, new { @maxlength = "5" })
                        </td>
                        <td>
                            @Html.TextBoxFor(m => m.PatientDetails.Treatment.SuctionAttempt)
                        </td>
                    </tr>
                    <tr>
                        <td>
                            @Html.CheckBoxFor(m => m.PatientDetails.Treatment.OpaNpa)
                            @Html.LabelFor(m => m.PatientDetails.Treatment.OpaNpa)
                        </td>
                        <td>@Html.TextBoxFor(m => m.PatientDetails.Treatment.OpaNpaSize)
                        </td>
                        <td>
                            @Html.RadioButtonFor(m => m.PatientDetails.Treatment.OpaNpaSuccess, "true")
                            <label class="value">
                                Yes</label>
                            @Html.RadioButtonFor(m => m.PatientDetails.Treatment.OpaNpaSuccess, "false")
                            <label class="value">
                                No</label>
                        </td>
                        <td>
                            @Html.TextBoxFor(m => m.PatientDetails.Treatment.OpaNpaTime, new { @maxlength = "5" })
                        </td>
                        <td>
                            @Html.TextBoxFor(m => m.PatientDetails.Treatment.OpaNpaAttempt)
                        </td>
                    </tr>
                    <tr>
                        <td>
                            @Html.CheckBoxFor(m => m.PatientDetails.Treatment.EtNt)
                            @Html.LabelFor(m => m.PatientDetails.Treatment.EtNt)
                        </td>
                        <td>@Html.TextBoxFor(m => m.PatientDetails.Treatment.EtNtSize)
                        </td>
                        <td>
                            @Html.RadioButtonFor(m => m.PatientDetails.Treatment.EtNtSuccess, "true")
                            <label class="value">
                                Yes</label>
                            @Html.RadioButtonFor(m => m.PatientDetails.Treatment.EtNtSuccess, "false")
                            <label class="value">
                                No</label>
                        </td>
                        <td>
                            @Html.TextBoxFor(m => m.PatientDetails.Treatment.EtNtTime, new { @maxlength = "5" })
                        </td>
                        <td>
                            @Html.TextBoxFor(m => m.PatientDetails.Treatment.EtNtAttempt)
                        </td>
                    </tr>
                    <tr>
                        <td>
                            @Html.CheckBoxFor(m => m.PatientDetails.Treatment.AirwayMgmtOthers)
                            @Html.LabelFor(m => m.PatientDetails.Treatment.AirwayMgmtOthers)
                        </td>
                        <td>@Html.TextBoxFor(m => m.PatientDetails.Treatment.AirwayMgmtOthersSize)
                        </td>
                        <td>
                            @Html.RadioButtonFor(m => m.PatientDetails.Treatment.AirwayMgmtOthersSuccess, "true")
                            <label class="value">
                                Yes</label>
                            @Html.RadioButtonFor(m => m.PatientDetails.Treatment.AirwayMgmtOthersSuccess, "false")
                            <label class="value">
                                No</label>
                        </td>
                        <td>
                            @Html.TextBoxFor(m => m.PatientDetails.Treatment.AirwayMgmtOthersTime, new { @maxlength = "5" })
                        </td>
                        <td>
                            @Html.TextBoxFor(m => m.PatientDetails.Treatment.AirwayMgmtOthersAttempt)
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
        <tr>
            <td colspan="2">
                <table>
                    <tr>
                        <td>
                        <b>
                         @Html.LabelFor(m => m.PatientDetails.Treatment.Advice)
                        </b>
                           
                        </td>
                        <td>
                            @Html.TextAreaFor(m => m.PatientDetails.Treatment.Advice)
                        </td>
                    </tr>
                    <tr>
                        <td>
                        <b>
                        @Html.LabelFor(m => m.PatientDetails.Treatment.Summary)
                        </b>
                            
                        </td>
                        <td>
                            @Html.TextAreaFor(m => m.PatientDetails.Treatment.Summary)
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
</fieldset>
